import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
/*
 * Created by JFormDesigner on Wed Jun 06 20:58:14 PDT 2012
 */



/**
 * @author David Jaenisch
 */
public class myThirdFrame extends JFrame {
	public myThirdFrame() {
		initComponents();
		option1.setVisible(false);
		option2.setVisible(false);
		option3.setVisible(false);
	}

	private void startActionPerformed(ActionEvent e) {
		option1.setVisible(true);
		option2.setVisible(true);
		option3.setVisible(true);
		start.setVisible(false);
		textArea.setText("<html>So, there's applejack on the farm. You're her, or something. There's a buncha stuff you could be doing right now: " +
				"picking some apples, maybe. Or, you could plant some new apple trees in the west field. Big Macintosh never watered the celery stalks, " +
				"you could do that! Ya know, whatevah!</html>");
		option1.setText("Pick apples");
		option2.setText("Plant sapplings");
		option3.setText("Water celery stalks");
		
		
	}

	private void option1ActionPerformed(ActionEvent e) {
		// TODO add your code here
	}

	private void option2ActionPerformed(ActionEvent e) {
		// TODO add your code here
	}

	private void option3ActionPerformed(ActionEvent e) {
		// TODO add your code here
	}

	private void initComponents() {
		// JFormDesigner - Component initialization - DO NOT MODIFY  //GEN-BEGIN:initComponents
		// Generated using JFormDesigner Evaluation license - David Jaenisch
		picture = new JLabel();
		textArea = new JLabel();
		option1 = new JButton();
		option2 = new JButton();
		option3 = new JButton();
		start = new JButton();

		//======== this ========
		Container contentPane = getContentPane();

		//---- picture ----
		picture.setIcon(null);

		//---- textArea ----
		textArea.setText("Applejack");
		textArea.setMaximumSize(new Dimension(500, 42));
		textArea.setPreferredSize(new Dimension(500, 42));

		//---- option1 ----
		option1.setText("text");
		option1.addActionListener(new ActionListener() {
			@Override
			public void actionPerformed(ActionEvent e) {
				option1ActionPerformed(e);
			}
		});

		//---- option2 ----
		option2.setText("text");
		option2.addActionListener(new ActionListener() {
			@Override
			public void actionPerformed(ActionEvent e) {
				option2ActionPerformed(e);
			}
		});

		//---- option3 ----
		option3.setText("text");
		option3.addActionListener(new ActionListener() {
			@Override
			public void actionPerformed(ActionEvent e) {
				option3ActionPerformed(e);
			}
		});

		//---- start ----
		start.setText("Start");
		start.addActionListener(new ActionListener() {
			@Override
			public void actionPerformed(ActionEvent e) {
				startActionPerformed(e);
			}
		});

		GroupLayout contentPaneLayout = new GroupLayout(contentPane);
		contentPane.setLayout(contentPaneLayout);
		contentPaneLayout.setHorizontalGroup(
			contentPaneLayout.createParallelGroup()
				.addGroup(contentPaneLayout.createSequentialGroup()
					.addGroup(contentPaneLayout.createParallelGroup(GroupLayout.Alignment.LEADING, false)
						.addComponent(picture, GroupLayout.PREFERRED_SIZE, 514, GroupLayout.PREFERRED_SIZE)
						.addComponent(textArea, GroupLayout.DEFAULT_SIZE, 0, Short.MAX_VALUE))
					.addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
					.addGroup(contentPaneLayout.createParallelGroup(GroupLayout.Alignment.TRAILING, false)
						.addComponent(option1, GroupLayout.Alignment.LEADING, GroupLayout.DEFAULT_SIZE, 109, Short.MAX_VALUE)
						.addComponent(option2, GroupLayout.Alignment.LEADING, GroupLayout.DEFAULT_SIZE, 109, Short.MAX_VALUE)
						.addComponent(option3, GroupLayout.Alignment.LEADING, GroupLayout.DEFAULT_SIZE, 109, Short.MAX_VALUE)
						.addComponent(start, GroupLayout.DEFAULT_SIZE, 109, Short.MAX_VALUE))
					.addContainerGap(22, Short.MAX_VALUE))
		);
		contentPaneLayout.setVerticalGroup(
			contentPaneLayout.createParallelGroup()
				.addGroup(contentPaneLayout.createSequentialGroup()
					.addGroup(contentPaneLayout.createParallelGroup(GroupLayout.Alignment.TRAILING, false)
						.addGroup(GroupLayout.Alignment.LEADING, contentPaneLayout.createSequentialGroup()
							.addContainerGap()
							.addComponent(option1, GroupLayout.PREFERRED_SIZE, 40, GroupLayout.PREFERRED_SIZE)
							.addGap(18, 18, 18)
							.addComponent(option2, GroupLayout.PREFERRED_SIZE, 40, GroupLayout.PREFERRED_SIZE)
							.addGap(18, 18, 18)
							.addComponent(option3, GroupLayout.PREFERRED_SIZE, 40, GroupLayout.PREFERRED_SIZE)
							.addPreferredGap(LayoutStyle.ComponentPlacement.RELATED, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
							.addComponent(start, GroupLayout.PREFERRED_SIZE, 40, GroupLayout.PREFERRED_SIZE))
						.addComponent(picture, GroupLayout.PREFERRED_SIZE, 309, GroupLayout.PREFERRED_SIZE))
					.addPreferredGap(LayoutStyle.ComponentPlacement.RELATED, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
					.addComponent(textArea, GroupLayout.DEFAULT_SIZE, 114, Short.MAX_VALUE))
		);
		pack();
		setLocationRelativeTo(getOwner());
		// JFormDesigner - End of component initialization  //GEN-END:initComponents
	}

	// JFormDesigner - Variables declaration - DO NOT MODIFY  //GEN-BEGIN:variables
	// Generated using JFormDesigner Evaluation license - David Jaenisch
	private JLabel picture;
	private JLabel textArea;
	private JButton option1;
	private JButton option2;
	private JButton option3;
	private JButton start;
	// JFormDesigner - End of variables declaration  //GEN-END:variables
}
